const express = require('express');

const adminController = require('../controllers/admin') 

const router = express.Router();


router.get('/add-product',adminController.getAddProduct);

router.get('/products' , adminController.getProducts)

router.post('/add-products',adminController.postAddProduct);

router.get('/edit-product/:productId',adminController.getEditProduct);

router.post('/edit-product',adminController.postEditProduct);

router.post('/delete-product', adminController.postDeleteProduct)

module.exports = router;